package com.meilai.project.controller.web.workPlatform;

import com.meilai.project.controller.web.workPlatform.service.WorkPlatformService;
import com.meilai.project.controller.web.workPlatform.vo.CalendarEventVO;
import com.meilai.project.dto.base.ApiResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("api/web/work_platform")
@Api(tags = "工作台")
public class WorkPlatformController {
    @Autowired
    private WorkPlatformService service;

    @GetMapping("calendar-event-list")
    @ApiOperation(value = "日程事件")
    public ApiResult<List<CalendarEventVO>> calendarEventList() {
        return ApiResult.ok(service.calendarEventList());
    }
}
